package com.ruan.controller;

import com.ruan.entity.Address;
import com.ruan.entity.Result;
import com.ruan.service.AddressService;
import com.ruan.vo.AddressVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName:AddressController
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/7/3 10:13
 **/
@RestController
@RequestMapping("/address")
public class AddressController {

    @Autowired
    private AddressService addressService;

    @PostMapping("/addAddress")
    public Result addAddress(AddressVo addressVo){
        return addressService.addAddress(addressVo);
    }
}
